import './index.scss'
import { NavBar } from 'antd-mobile'

const MyNavBar = ({title,back,onBack = null,onClick = null}) => {
    return (
        <div className="myNavBar" onClick = {onClick}>
            <NavBar back={back} onBack = {onBack}>{title}</NavBar>
        </div>
    )
}

export default MyNavBar
